#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdint.h>
using namespace std;
class sishewuru
{
private:
	float in;
	int64_t shifen;
	int64_t baifen;
	int64_t qianfen;
	float out;
public:
	sishewuru(float n)
	{
		in = n;
		shifen = (int)(in * 10) % 10;
		baifen = (int)(in * 100) % 10;
		qianfen = (int)(in * 1000) % 10;
		if (qianfen >= 5) ++baifen;
		out = (float)((int)n * 100 + shifen * 10 + baifen * 1) / 100;
	}
	float ret()
	{
		return out;
	}
};
int main()
{
	float n;
	cin >> n;
	cout <<sishewuru(n).ret()<< endl;
}